//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2021 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto/tree/main/CodeGenerator. DO NOT EDIT.

import Foundation
import SotoCore

extension ComputeOptimizer {
    // MARK: Enums

    public enum EBSFilterName: String, CustomStringConvertible, Codable {
        case finding = "Finding"
        public var description: String { return self.rawValue }
    }

    public enum EBSFinding: String, CustomStringConvertible, Codable {
        case notoptimized = "NotOptimized"
        case optimized = "Optimized"
        public var description: String { return self.rawValue }
    }

    public enum EBSMetricName: String, CustomStringConvertible, Codable {
        case volumereadbytespersecond = "VolumeReadBytesPerSecond"
        case volumereadopspersecond = "VolumeReadOpsPerSecond"
        case volumewritebytespersecond = "VolumeWriteBytesPerSecond"
        case volumewriteopspersecond = "VolumeWriteOpsPerSecond"
        public var description: String { return self.rawValue }
    }

    public enum ExportableAutoScalingGroupField: String, CustomStringConvertible, Codable {
        case accountid = "AccountId"
        case autoscalinggrouparn = "AutoScalingGroupArn"
        case autoscalinggroupname = "AutoScalingGroupName"
        case currentconfigurationdesiredcapacity = "CurrentConfigurationDesiredCapacity"
        case currentconfigurationinstancetype = "CurrentConfigurationInstanceType"
        case currentconfigurationmaxsize = "CurrentConfigurationMaxSize"
        case currentconfigurationminsize = "CurrentConfigurationMinSize"
        case currentmemory = "CurrentMemory"
        case currentnetwork = "CurrentNetwork"
        case currentondemandprice = "CurrentOnDemandPrice"
        case currentstandardoneyearnoupfrontreservedprice = "CurrentStandardOneYearNoUpfrontReservedPrice"
        case currentstandardthreeyearnoupfrontreservedprice = "CurrentStandardThreeYearNoUpfrontReservedPrice"
        case currentstorage = "CurrentStorage"
        case currentvcpus = "CurrentVCpus"
        case finding = "Finding"
        case lastrefreshtimestamp = "LastRefreshTimestamp"
        case lookbackperiodindays = "LookbackPeriodInDays"
        case recommendationoptionsconfigurationdesiredcapacity = "RecommendationOptionsConfigurationDesiredCapacity"
        case recommendationoptionsconfigurationinstancetype = "RecommendationOptionsConfigurationInstanceType"
        case recommendationoptionsconfigurationmaxsize = "RecommendationOptionsConfigurationMaxSize"
        case recommendationoptionsconfigurationminsize = "RecommendationOptionsConfigurationMinSize"
        case recommendationoptionsmemory = "RecommendationOptionsMemory"
        case recommendationoptionsnetwork = "RecommendationOptionsNetwork"
        case recommendationoptionsondemandprice = "RecommendationOptionsOnDemandPrice"
        case recommendationoptionsperformancerisk = "RecommendationOptionsPerformanceRisk"
        case recommendationoptionsprojectedutilizationmetricscpumaximum = "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"
        case recommendationoptionsprojectedutilizationmetricsmemorymaximum = "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"
        case recommendationoptionsstandardoneyearnoupfrontreservedprice = "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice"
        case recommendationoptionsstandardthreeyearnoupfrontreservedprice = "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice"
        case recommendationoptionsstorage = "RecommendationOptionsStorage"
        case recommendationoptionsvcpus = "RecommendationOptionsVcpus"
        case utilizationmetricscpumaximum = "UtilizationMetricsCpuMaximum"
        case utilizationmetricsebsreadbytespersecondmaximum = "UtilizationMetricsEbsReadBytesPerSecondMaximum"
        case utilizationmetricsebsreadopspersecondmaximum = "UtilizationMetricsEbsReadOpsPerSecondMaximum"
        case utilizationmetricsebswritebytespersecondmaximum = "UtilizationMetricsEbsWriteBytesPerSecondMaximum"
        case utilizationmetricsebswriteopspersecondmaximum = "UtilizationMetricsEbsWriteOpsPerSecondMaximum"
        case utilizationmetricsmemorymaximum = "UtilizationMetricsMemoryMaximum"
        public var description: String { return self.rawValue }
    }

    public enum ExportableInstanceField: String, CustomStringConvertible, Codable {
        case accountid = "AccountId"
        case currentinstancetype = "CurrentInstanceType"
        case currentmemory = "CurrentMemory"
        case currentnetwork = "CurrentNetwork"
        case currentondemandprice = "CurrentOnDemandPrice"
        case currentstandardoneyearnoupfrontreservedprice = "CurrentStandardOneYearNoUpfrontReservedPrice"
        case currentstandardthreeyearnoupfrontreservedprice = "CurrentStandardThreeYearNoUpfrontReservedPrice"
        case currentstorage = "CurrentStorage"
        case currentvcpus = "CurrentVCpus"
        case finding = "Finding"
        case instancearn = "InstanceArn"
        case instancename = "InstanceName"
        case lastrefreshtimestamp = "LastRefreshTimestamp"
        case lookbackperiodindays = "LookbackPeriodInDays"
        case recommendationoptionsinstancetype = "RecommendationOptionsInstanceType"
        case recommendationoptionsmemory = "RecommendationOptionsMemory"
        case recommendationoptionsnetwork = "RecommendationOptionsNetwork"
        case recommendationoptionsondemandprice = "RecommendationOptionsOnDemandPrice"
        case recommendationoptionsperformancerisk = "RecommendationOptionsPerformanceRisk"
        case recommendationoptionsprojectedutilizationmetricscpumaximum = "RecommendationOptionsProjectedUtilizationMetricsCpuMaximum"
        case recommendationoptionsprojectedutilizationmetricsmemorymaximum = "RecommendationOptionsProjectedUtilizationMetricsMemoryMaximum"
        case recommendationoptionsstandardoneyearnoupfrontreservedprice = "RecommendationOptionsStandardOneYearNoUpfrontReservedPrice"
        case recommendationoptionsstandardthreeyearnoupfrontreservedprice = "RecommendationOptionsStandardThreeYearNoUpfrontReservedPrice"
        case recommendationoptionsstorage = "RecommendationOptionsStorage"
        case recommendationoptionsvcpus = "RecommendationOptionsVcpus"
        case recommendationssourcesrecommendationsourcearn = "RecommendationsSourcesRecommendationSourceArn"
        case recommendationssourcesrecommendationsourcetype = "RecommendationsSourcesRecommendationSourceType"
        case utilizationmetricscpumaximum = "UtilizationMetricsCpuMaximum"
        case utilizationmetricsebsreadbytespersecondmaximum = "UtilizationMetricsEbsReadBytesPerSecondMaximum"
        case utilizationmetricsebsreadopspersecondmaximum = "UtilizationMetricsEbsReadOpsPerSecondMaximum"
        case utilizationmetricsebswritebytespersecondmaximum = "UtilizationMetricsEbsWriteBytesPerSecondMaximum"
        case utilizationmetricsebswriteopspersecondmaximum = "UtilizationMetricsEbsWriteOpsPerSecondMaximum"
        case utilizationmetricsmemorymaximum = "UtilizationMetricsMemoryMaximum"
        public var description: String { return self.rawValue }
    }

    public enum FileFormat: String, CustomStringConvertible, Codable {
        case csv = "Csv"
        public var description: String { return self.rawValue }
    }

    public enum FilterName: String, CustomStringConvertible, Codable {
        case finding = "Finding"
        case recommendationsourcetype = "RecommendationSourceType"
        public var description: String { return self.rawValue }
    }

    public enum Finding: String, CustomStringConvertible, Codable {
        case notoptimized = "NotOptimized"
        case optimized = "Optimized"
        case overprovisioned = "Overprovisioned"
        case underprovisioned = "Underprovisioned"
        public var description: String { return self.rawValue }
    }

    public enum FindingReasonCode: String, CustomStringConvertible, Codable {
        case memoryoverprovisioned = "MemoryOverprovisioned"
        case memoryunderprovisioned = "MemoryUnderprovisioned"
        public var description: String { return self.rawValue }
    }

    public enum JobFilterName: String, CustomStringConvertible, Codable {
        case jobstatus = "JobStatus"
        case resourcetype = "ResourceType"
        public var description: String { return self.rawValue }
    }

    public enum JobStatus: String, CustomStringConvertible, Codable {
        case complete = "Complete"
        case failed = "Failed"
        case inprogress = "InProgress"
        case queued = "Queued"
        public var description: String { return self.rawValue }
    }

    public enum LambdaFunctionMemoryMetricName: String, CustomStringConvertible, Codable {
        case duration = "Duration"
        public var description: String { return self.rawValue }
    }

    public enum LambdaFunctionMemoryMetricStatistic: String, CustomStringConvertible, Codable {
        case expected = "Expected"
        case lowerbound = "LowerBound"
        case upperbound = "UpperBound"
        public var description: String { return self.rawValue }
    }

    public enum LambdaFunctionMetricName: String, CustomStringConvertible, Codable {
        case duration = "Duration"
        case memory = "Memory"
        public var description: String { return self.rawValue }
    }

    public enum LambdaFunctionMetricStatistic: String, CustomStringConvertible, Codable {
        case average = "Average"
        case maximum = "Maximum"
        public var description: String { return self.rawValue }
    }

    public enum LambdaFunctionRecommendationFilterName: String, CustomStringConvertible, Codable {
        case finding = "Finding"
        case findingreasoncode = "FindingReasonCode"
        public var description: String { return self.rawValue }
    }

    public enum LambdaFunctionRecommendationFinding: String, CustomStringConvertible, Codable {
        case notoptimized = "NotOptimized"
        case optimized = "Optimized"
        case unavailable = "Unavailable"
        public var description: String { return self.rawValue }
    }

    public enum LambdaFunctionRecommendationFindingReasonCode: String, CustomStringConvertible, Codable {
        case inconclusive = "Inconclusive"
        case insufficientdata = "InsufficientData"
        case memoryoverprovisioned = "MemoryOverprovisioned"
        case memoryunderprovisioned = "MemoryUnderprovisioned"
        public var description: String { return self.rawValue }
    }

    public enum MetricName: String, CustomStringConvertible, Codable {
        case cpu = "Cpu"
        case ebsReadBytesPerSecond = "EBS_READ_BYTES_PER_SECOND"
        case ebsReadOpsPerSecond = "EBS_READ_OPS_PER_SECOND"
        case ebsWriteBytesPerSecond = "EBS_WRITE_BYTES_PER_SECOND"
        case ebsWriteOpsPerSecond = "EBS_WRITE_OPS_PER_SECOND"
        case memory = "Memory"
        public var description: String { return self.rawValue }
    }

    public enum MetricStatistic: String, CustomStringConvertible, Codable {
        case average = "Average"
        case maximum = "Maximum"
        public var description: String { return self.rawValue }
    }

    public enum RecommendationSourceType: String, CustomStringConvertible, Codable {
        case autoscalinggroup = "AutoScalingGroup"
        case ebsvolume = "EbsVolume"
        case ec2instance = "Ec2Instance"
        case lambdafunction = "LambdaFunction"
        public var description: String { return self.rawValue }
    }

    public enum ResourceType: String, CustomStringConvertible, Codable {
        case autoscalinggroup = "AutoScalingGroup"
        case ec2instance = "Ec2Instance"
        public var description: String { return self.rawValue }
    }

    public enum Status: String, CustomStringConvertible, Codable {
        case active = "Active"
        case failed = "Failed"
        case inactive = "Inactive"
        case pending = "Pending"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct AutoScalingGroupConfiguration: AWSDecodableShape {
        /// The desired capacity, or number of instances, for the Auto Scaling group.
        public let desiredCapacity: Int?
        /// The instance type for the Auto Scaling group.
        public let instanceType: String?
        /// The maximum size, or maximum number of instances, for the Auto Scaling group.
        public let maxSize: Int?
        /// The minimum size, or minimum number of instances, for the Auto Scaling group.
        public let minSize: Int?

        public init(desiredCapacity: Int? = nil, instanceType: String? = nil, maxSize: Int? = nil, minSize: Int? = nil) {
            self.desiredCapacity = desiredCapacity
            self.instanceType = instanceType
            self.maxSize = maxSize
            self.minSize = minSize
        }

        private enum CodingKeys: String, CodingKey {
            case desiredCapacity
            case instanceType
            case maxSize
            case minSize
        }
    }

    public struct AutoScalingGroupRecommendation: AWSDecodableShape {
        /// The AWS account ID of the Auto Scaling group.
        public let accountId: String?
        /// The Amazon Resource Name (ARN) of the Auto Scaling group.
        public let autoScalingGroupArn: String?
        /// The name of the Auto Scaling group.
        public let autoScalingGroupName: String?
        /// An array of objects that describe the current configuration of the Auto Scaling group.
        public let currentConfiguration: AutoScalingGroupConfiguration?
        /// The finding classification for the Auto Scaling group. Findings for Auto Scaling groups include:     NotOptimized —An Auto Scaling group is considered not optimized when AWS Compute Optimizer identifies a recommendation that can provide better performance for your workload.     Optimized —An Auto Scaling group is considered optimized when Compute Optimizer determines that the group is correctly provisioned to run your workload based on the chosen instance type. For optimized resources, Compute Optimizer might recommend a new generation instance type.
        public let finding: Finding?
        /// The time stamp of when the Auto Scaling group recommendation was last refreshed.
        public let lastRefreshTimestamp: Date?
        /// The number of days for which utilization metrics were analyzed for the Auto Scaling group.
        public let lookBackPeriodInDays: Double?
        /// An array of objects that describe the recommendation options for the Auto Scaling group.
        public let recommendationOptions: [AutoScalingGroupRecommendationOption]?
        /// An array of objects that describe the utilization metrics of the Auto Scaling group.
        public let utilizationMetrics: [UtilizationMetric]?

        public init(accountId: String? = nil, autoScalingGroupArn: String? = nil, autoScalingGroupName: String? = nil, currentConfiguration: AutoScalingGroupConfiguration? = nil, finding: Finding? = nil, lastRefreshTimestamp: Date? = nil, lookBackPeriodInDays: Double? = nil, recommendationOptions: [AutoScalingGroupRecommendationOption]? = nil, utilizationMetrics: [UtilizationMetric]? = nil) {
            self.accountId = accountId
            self.autoScalingGroupArn = autoScalingGroupArn
            self.autoScalingGroupName = autoScalingGroupName
            self.currentConfiguration = currentConfiguration
            self.finding = finding
            self.lastRefreshTimestamp = lastRefreshTimestamp
            self.lookBackPeriodInDays = lookBackPeriodInDays
            self.recommendationOptions = recommendationOptions
            self.utilizationMetrics = utilizationMetrics
        }

        private enum CodingKeys: String, CodingKey {
            case accountId
            case autoScalingGroupArn
            case autoScalingGroupName
            case currentConfiguration
            case finding
            case lastRefreshTimestamp
            case lookBackPeriodInDays
            case recommendationOptions
            case utilizationMetrics
        }
    }

    public struct AutoScalingGroupRecommendationOption: AWSDecodableShape {
        /// An array of objects that describe an Auto Scaling group configuration.
        public let configuration: AutoScalingGroupConfiguration?
        /// The performance risk of the Auto Scaling group configuration recommendation. Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload. The lowest performance risk is categorized as 0, and the highest as 5.
        public let performanceRisk: Double?
        /// An array of objects that describe the projected utilization metrics of the Auto Scaling group recommendation option.  The Cpu and Memory metrics are the only projected utilization metrics returned. Additionally, the Memory metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
        public let projectedUtilizationMetrics: [UtilizationMetric]?
        /// The rank of the Auto Scaling group recommendation option. The top recommendation option is ranked as 1.
        public let rank: Int?

        public init(configuration: AutoScalingGroupConfiguration? = nil, performanceRisk: Double? = nil, projectedUtilizationMetrics: [UtilizationMetric]? = nil, rank: Int? = nil) {
            self.configuration = configuration
            self.performanceRisk = performanceRisk
            self.projectedUtilizationMetrics = projectedUtilizationMetrics
            self.rank = rank
        }

        private enum CodingKeys: String, CodingKey {
            case configuration
            case performanceRisk
            case projectedUtilizationMetrics
            case rank
        }
    }

    public struct DescribeRecommendationExportJobsRequest: AWSEncodableShape {
        /// An array of objects that describe a filter to return a more specific list of export jobs.
        public let filters: [JobFilter]?
        /// The identification numbers of the export jobs to return. An export job ID is returned when you create an export using the ExportAutoScalingGroupRecommendations or ExportEC2InstanceRecommendations actions. All export jobs created in the last seven days are returned if this parameter is omitted.
        public let jobIds: [String]?
        /// The maximum number of export jobs to return with a single request. To retrieve the remaining results, make another request with the returned NextToken value.
        public let maxResults: Int?
        /// The token to advance to the next page of export jobs.
        public let nextToken: String?

        public init(filters: [JobFilter]? = nil, jobIds: [String]? = nil, maxResults: Int? = nil, nextToken: String? = nil) {
            self.filters = filters
            self.jobIds = jobIds
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case filters
            case jobIds
            case maxResults
            case nextToken
        }
    }

    public struct DescribeRecommendationExportJobsResponse: AWSDecodableShape {
        /// The token to use to advance to the next page of export jobs. This value is null when there are no more pages of export jobs to return.
        public let nextToken: String?
        /// An array of objects that describe recommendation export jobs.
        public let recommendationExportJobs: [RecommendationExportJob]?

        public init(nextToken: String? = nil, recommendationExportJobs: [RecommendationExportJob]? = nil) {
            self.nextToken = nextToken
            self.recommendationExportJobs = recommendationExportJobs
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken
            case recommendationExportJobs
        }
    }

    public struct EBSFilter: AWSEncodableShape {
        /// The name of the filter. Specify Finding to return recommendations with a specific finding classification (e.g., Optimized).
        public let name: EBSFilterName?
        /// The value of the filter. The valid values are Optimized, or NotOptimized.
        public let values: [String]?

        public init(name: EBSFilterName? = nil, values: [String]? = nil) {
            self.name = name
            self.values = values
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case values
        }
    }

    public struct EBSUtilizationMetric: AWSDecodableShape {
        /// The name of the utilization metric. The following utilization metrics are available:    VolumeReadOpsPerSecond - The completed read operations per second from the volume in a specified period of time. Unit: Count    VolumeWriteOpsPerSecond - The completed write operations per second to the volume in a specified period of time. Unit: Count    VolumeReadBytesPerSecond - The bytes read per second from the volume in a specified period of time. Unit: Bytes    VolumeWriteBytesPerSecond - The bytes written to the volume in a specified period of time. Unit: Bytes
        public let name: EBSMetricName?
        /// The statistic of the utilization metric. The following statistics are available:    Average - This is the value of Sum / SampleCount during the specified period, or the average value observed during the specified period.    Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.
        public let statistic: MetricStatistic?
        /// The value of the utilization metric.
        public let value: Double?

        public init(name: EBSMetricName? = nil, statistic: MetricStatistic? = nil, value: Double? = nil) {
            self.name = name
            self.statistic = statistic
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case statistic
            case value
        }
    }

    public struct ExportAutoScalingGroupRecommendationsRequest: AWSEncodableShape {
        /// The IDs of the AWS accounts for which to export Auto Scaling group recommendations. If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations. This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive. Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted. You can specify multiple account IDs per request.
        public let accountIds: [String]?
        /// The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
        public let fieldsToExport: [ExportableAutoScalingGroupField]?
        /// The format of the export file. The only export file format currently supported is Csv.
        public let fileFormat: FileFormat?
        /// An array of objects that describe a filter to export a more specific set of Auto Scaling group recommendations.
        public let filters: [Filter]?
        /// Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization. The member accounts must also be opted in to Compute Optimizer. Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted. This parameter cannot be specified together with the account IDs parameter. The parameters are mutually exclusive. Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
        public let includeMemberAccounts: Bool?
        /// An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job. You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.
        public let s3DestinationConfig: S3DestinationConfig

        public init(accountIds: [String]? = nil, fieldsToExport: [ExportableAutoScalingGroupField]? = nil, fileFormat: FileFormat? = nil, filters: [Filter]? = nil, includeMemberAccounts: Bool? = nil, s3DestinationConfig: S3DestinationConfig) {
            self.accountIds = accountIds
            self.fieldsToExport = fieldsToExport
            self.fileFormat = fileFormat
            self.filters = filters
            self.includeMemberAccounts = includeMemberAccounts
            self.s3DestinationConfig = s3DestinationConfig
        }

        private enum CodingKeys: String, CodingKey {
            case accountIds
            case fieldsToExport
            case fileFormat
            case filters
            case includeMemberAccounts
            case s3DestinationConfig
        }
    }

    public struct ExportAutoScalingGroupRecommendationsResponse: AWSDecodableShape {
        /// The identification number of the export job. Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.
        public let jobId: String?
        /// An object that describes the destination Amazon S3 bucket of a recommendations export file.
        public let s3Destination: S3Destination?

        public init(jobId: String? = nil, s3Destination: S3Destination? = nil) {
            self.jobId = jobId
            self.s3Destination = s3Destination
        }

        private enum CodingKeys: String, CodingKey {
            case jobId
            case s3Destination
        }
    }

    public struct ExportDestination: AWSDecodableShape {
        /// An object that describes the destination Amazon Simple Storage Service (Amazon S3) bucket name and object keys of a recommendations export file, and its associated metadata file.
        public let s3: S3Destination?

        public init(s3: S3Destination? = nil) {
            self.s3 = s3
        }

        private enum CodingKeys: String, CodingKey {
            case s3
        }
    }

    public struct ExportEC2InstanceRecommendationsRequest: AWSEncodableShape {
        /// The IDs of the AWS accounts for which to export instance recommendations. If your account is the management account of an organization, use this parameter to specify the member account for which you want to export recommendations. This parameter cannot be specified together with the include member accounts parameter. The parameters are mutually exclusive. Recommendations for member accounts are not included in the export if this parameter, or the include member accounts parameter, is omitted. You can specify multiple account IDs per request.
        public let accountIds: [String]?
        /// The recommendations data to include in the export file. For more information about the fields that can be exported, see Exported files in the Compute Optimizer User Guide.
        public let fieldsToExport: [ExportableInstanceField]?
        /// The format of the export file. The only export file format currently supported is Csv.
        public let fileFormat: FileFormat?
        /// An array of objects that describe a filter to export a more specific set of instance recommendations.
        public let filters: [Filter]?
        /// Indicates whether to include recommendations for resources in all member accounts of the organization if your account is the management account of an organization. The member accounts must also be opted in to Compute Optimizer. Recommendations for member accounts of the organization are not included in the export file if this parameter is omitted. Recommendations for member accounts are not included in the export if this parameter, or the account IDs parameter, is omitted.
        public let includeMemberAccounts: Bool?
        /// An object to specify the destination Amazon Simple Storage Service (Amazon S3) bucket name and key prefix for the export job. You must create the destination Amazon S3 bucket for your recommendations export before you create the export job. Compute Optimizer does not create the S3 bucket for you. After you create the S3 bucket, ensure that it has the required permission policy to allow Compute Optimizer to write the export file to it. If you plan to specify an object prefix when you create the export job, you must include the object prefix in the policy that you add to the S3 bucket. For more information, see Amazon S3 Bucket Policy for Compute Optimizer in the Compute Optimizer user guide.
        public let s3DestinationConfig: S3DestinationConfig

        public init(accountIds: [String]? = nil, fieldsToExport: [ExportableInstanceField]? = nil, fileFormat: FileFormat? = nil, filters: [Filter]? = nil, includeMemberAccounts: Bool? = nil, s3DestinationConfig: S3DestinationConfig) {
            self.accountIds = accountIds
            self.fieldsToExport = fieldsToExport
            self.fileFormat = fileFormat
            self.filters = filters
            self.includeMemberAccounts = includeMemberAccounts
            self.s3DestinationConfig = s3DestinationConfig
        }

        private enum CodingKeys: String, CodingKey {
            case accountIds
            case fieldsToExport
            case fileFormat
            case filters
            case includeMemberAccounts
            case s3DestinationConfig
        }
    }

    public struct ExportEC2InstanceRecommendationsResponse: AWSDecodableShape {
        /// The identification number of the export job. Use the DescribeRecommendationExportJobs action, and specify the job ID to view the status of an export job.
        public let jobId: String?
        /// An object that describes the destination Amazon S3 bucket of a recommendations export file.
        public let s3Destination: S3Destination?

        public init(jobId: String? = nil, s3Destination: S3Destination? = nil) {
            self.jobId = jobId
            self.s3Destination = s3Destination
        }

        private enum CodingKeys: String, CodingKey {
            case jobId
            case s3Destination
        }
    }

    public struct Filter: AWSEncodableShape {
        /// The name of the filter. Specify Finding to return recommendations with a specific finding classification (e.g., Overprovisioned). Specify RecommendationSourceType to return recommendations of a specific resource type (e.g., AutoScalingGroup).
        public let name: FilterName?
        /// The value of the filter. The valid values for this parameter are as follows, depending on what you specify for the name parameter and the resource type that you wish to filter results for:   Specify Optimized or NotOptimized if you specified the name parameter as Finding and you want to filter results for Auto Scaling groups.   Specify Underprovisioned, Overprovisioned, or Optimized if you specified the name parameter as Finding and you want to filter results for EC2 instances.   Specify Ec2Instance or AutoScalingGroup if you specified the name parameter as RecommendationSourceType.
        public let values: [String]?

        public init(name: FilterName? = nil, values: [String]? = nil) {
            self.name = name
            self.values = values
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case values
        }
    }

    public struct GetAutoScalingGroupRecommendationsRequest: AWSEncodableShape {
        /// The ID of the AWS account for which to return Auto Scaling group recommendations. If your account is the management account of an organization, use this parameter to specify the member account for which you want to return Auto Scaling group recommendations. Only one account ID can be specified per request.
        public let accountIds: [String]?
        /// The Amazon Resource Name (ARN) of the Auto Scaling groups for which to return recommendations.
        public let autoScalingGroupArns: [String]?
        /// An array of objects that describe a filter that returns a more specific list of Auto Scaling group recommendations.
        public let filters: [Filter]?
        /// The maximum number of Auto Scaling group recommendations to return with a single request. To retrieve the remaining results, make another request with the returned NextToken value.
        public let maxResults: Int?
        /// The token to advance to the next page of Auto Scaling group recommendations.
        public let nextToken: String?

        public init(accountIds: [String]? = nil, autoScalingGroupArns: [String]? = nil, filters: [Filter]? = nil, maxResults: Int? = nil, nextToken: String? = nil) {
            self.accountIds = accountIds
            self.autoScalingGroupArns = autoScalingGroupArns
            self.filters = filters
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case accountIds
            case autoScalingGroupArns
            case filters
            case maxResults
            case nextToken
        }
    }

    public struct GetAutoScalingGroupRecommendationsResponse: AWSDecodableShape {
        /// An array of objects that describe Auto Scaling group recommendations.
        public let autoScalingGroupRecommendations: [AutoScalingGroupRecommendation]?
        /// An array of objects that describe errors of the request. For example, an error is returned if you request recommendations for an unsupported Auto Scaling group.
        public let errors: [GetRecommendationError]?
        /// The token to use to advance to the next page of Auto Scaling group recommendations. This value is null when there are no more pages of Auto Scaling group recommendations to return.
        public let nextToken: String?

        public init(autoScalingGroupRecommendations: [AutoScalingGroupRecommendation]? = nil, errors: [GetRecommendationError]? = nil, nextToken: String? = nil) {
            self.autoScalingGroupRecommendations = autoScalingGroupRecommendations
            self.errors = errors
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case autoScalingGroupRecommendations
            case errors
            case nextToken
        }
    }

    public struct GetEBSVolumeRecommendationsRequest: AWSEncodableShape {
        /// The ID of the AWS account for which to return volume recommendations. If your account is the management account of an organization, use this parameter to specify the member account for which you want to return volume recommendations. Only one account ID can be specified per request.
        public let accountIds: [String]?
        /// An array of objects that describe a filter that returns a more specific list of volume recommendations.
        public let filters: [EBSFilter]?
        /// The maximum number of volume recommendations to return with a single request. To retrieve the remaining results, make another request with the returned NextToken value.
        public let maxResults: Int?
        /// The token to advance to the next page of volume recommendations.
        public let nextToken: String?
        /// The Amazon Resource Name (ARN) of the volumes for which to return recommendations.
        public let volumeArns: [String]?

        public init(accountIds: [String]? = nil, filters: [EBSFilter]? = nil, maxResults: Int? = nil, nextToken: String? = nil, volumeArns: [String]? = nil) {
            self.accountIds = accountIds
            self.filters = filters
            self.maxResults = maxResults
            self.nextToken = nextToken
            self.volumeArns = volumeArns
        }

        private enum CodingKeys: String, CodingKey {
            case accountIds
            case filters
            case maxResults
            case nextToken
            case volumeArns
        }
    }

    public struct GetEBSVolumeRecommendationsResponse: AWSDecodableShape {
        /// An array of objects that describe errors of the request. For example, an error is returned if you request recommendations for an unsupported volume.
        public let errors: [GetRecommendationError]?
        /// The token to use to advance to the next page of volume recommendations. This value is null when there are no more pages of volume recommendations to return.
        public let nextToken: String?
        /// An array of objects that describe volume recommendations.
        public let volumeRecommendations: [VolumeRecommendation]?

        public init(errors: [GetRecommendationError]? = nil, nextToken: String? = nil, volumeRecommendations: [VolumeRecommendation]? = nil) {
            self.errors = errors
            self.nextToken = nextToken
            self.volumeRecommendations = volumeRecommendations
        }

        private enum CodingKeys: String, CodingKey {
            case errors
            case nextToken
            case volumeRecommendations
        }
    }

    public struct GetEC2InstanceRecommendationsRequest: AWSEncodableShape {
        /// The ID of the AWS account for which to return instance recommendations. If your account is the management account of an organization, use this parameter to specify the member account for which you want to return instance recommendations. Only one account ID can be specified per request.
        public let accountIds: [String]?
        /// An array of objects that describe a filter that returns a more specific list of instance recommendations.
        public let filters: [Filter]?
        /// The Amazon Resource Name (ARN) of the instances for which to return recommendations.
        public let instanceArns: [String]?
        /// The maximum number of instance recommendations to return with a single request. To retrieve the remaining results, make another request with the returned NextToken value.
        public let maxResults: Int?
        /// The token to advance to the next page of instance recommendations.
        public let nextToken: String?

        public init(accountIds: [String]? = nil, filters: [Filter]? = nil, instanceArns: [String]? = nil, maxResults: Int? = nil, nextToken: String? = nil) {
            self.accountIds = accountIds
            self.filters = filters
            self.instanceArns = instanceArns
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case accountIds
            case filters
            case instanceArns
            case maxResults
            case nextToken
        }
    }

    public struct GetEC2InstanceRecommendationsResponse: AWSDecodableShape {
        /// An array of objects that describe errors of the request. For example, an error is returned if you request recommendations for an instance of an unsupported instance family.
        public let errors: [GetRecommendationError]?
        /// An array of objects that describe instance recommendations.
        public let instanceRecommendations: [InstanceRecommendation]?
        /// The token to use to advance to the next page of instance recommendations. This value is null when there are no more pages of instance recommendations to return.
        public let nextToken: String?

        public init(errors: [GetRecommendationError]? = nil, instanceRecommendations: [InstanceRecommendation]? = nil, nextToken: String? = nil) {
            self.errors = errors
            self.instanceRecommendations = instanceRecommendations
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case errors
            case instanceRecommendations
            case nextToken
        }
    }

    public struct GetEC2RecommendationProjectedMetricsRequest: AWSEncodableShape {
        /// The time stamp of the last projected metrics data point to return.
        public let endTime: Date
        /// The Amazon Resource Name (ARN) of the instances for which to return recommendation projected metrics.
        public let instanceArn: String
        /// The granularity, in seconds, of the projected metrics data points.
        public let period: Int
        /// The time stamp of the first projected metrics data point to return.
        public let startTime: Date
        /// The statistic of the projected metrics.
        public let stat: MetricStatistic

        public init(endTime: Date, instanceArn: String, period: Int, startTime: Date, stat: MetricStatistic) {
            self.endTime = endTime
            self.instanceArn = instanceArn
            self.period = period
            self.startTime = startTime
            self.stat = stat
        }

        private enum CodingKeys: String, CodingKey {
            case endTime
            case instanceArn
            case period
            case startTime
            case stat
        }
    }

    public struct GetEC2RecommendationProjectedMetricsResponse: AWSDecodableShape {
        /// An array of objects that describe a projected metrics.
        public let recommendedOptionProjectedMetrics: [RecommendedOptionProjectedMetric]?

        public init(recommendedOptionProjectedMetrics: [RecommendedOptionProjectedMetric]? = nil) {
            self.recommendedOptionProjectedMetrics = recommendedOptionProjectedMetrics
        }

        private enum CodingKeys: String, CodingKey {
            case recommendedOptionProjectedMetrics
        }
    }

    public struct GetEnrollmentStatusRequest: AWSEncodableShape {
        public init() {}
    }

    public struct GetEnrollmentStatusResponse: AWSDecodableShape {
        /// Confirms the enrollment status of member accounts within the organization, if the account is a management account of an organization.
        public let memberAccountsEnrolled: Bool?
        /// The enrollment status of the account.
        public let status: Status?
        /// The reason for the enrollment status of the account. For example, an account might show a status of Pending because member accounts of an organization require more time to be enrolled in the service.
        public let statusReason: String?

        public init(memberAccountsEnrolled: Bool? = nil, status: Status? = nil, statusReason: String? = nil) {
            self.memberAccountsEnrolled = memberAccountsEnrolled
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case memberAccountsEnrolled
            case status
            case statusReason
        }
    }

    public struct GetLambdaFunctionRecommendationsRequest: AWSEncodableShape {
        /// The ID of the AWS account for which to return function recommendations. If your account is the management account of an organization, use this parameter to specify the member account for which you want to return function recommendations. Only one account ID can be specified per request.
        public let accountIds: [String]?
        /// An array of objects that describe a filter that returns a more specific list of function recommendations.
        public let filters: [LambdaFunctionRecommendationFilter]?
        /// The Amazon Resource Name (ARN) of the functions for which to return recommendations. You can specify a qualified or unqualified ARN. If you specify an unqualified ARN without a function version suffix, Compute Optimizer will return recommendations for the latest ($LATEST) version of the function. If you specify a qualified ARN with a version suffix, Compute Optimizer will return recommendations for the specified function version. For more information about using function versions, see Using versions in the AWS Lambda Developer Guide.
        public let functionArns: [String]?
        /// The maximum number of function recommendations to return with a single request. To retrieve the remaining results, make another request with the returned NextToken value.
        public let maxResults: Int?
        /// The token to advance to the next page of function recommendations.
        public let nextToken: String?

        public init(accountIds: [String]? = nil, filters: [LambdaFunctionRecommendationFilter]? = nil, functionArns: [String]? = nil, maxResults: Int? = nil, nextToken: String? = nil) {
            self.accountIds = accountIds
            self.filters = filters
            self.functionArns = functionArns
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case accountIds
            case filters
            case functionArns
            case maxResults
            case nextToken
        }
    }

    public struct GetLambdaFunctionRecommendationsResponse: AWSDecodableShape {
        /// An array of objects that describe function recommendations.
        public let lambdaFunctionRecommendations: [LambdaFunctionRecommendation]?
        /// The token to use to advance to the next page of function recommendations. This value is null when there are no more pages of function recommendations to return.
        public let nextToken: String?

        public init(lambdaFunctionRecommendations: [LambdaFunctionRecommendation]? = nil, nextToken: String? = nil) {
            self.lambdaFunctionRecommendations = lambdaFunctionRecommendations
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case lambdaFunctionRecommendations
            case nextToken
        }
    }

    public struct GetRecommendationError: AWSDecodableShape {
        /// The error code.
        public let code: String?
        /// The ID of the error.
        public let identifier: String?
        /// The message, or reason, for the error.
        public let message: String?

        public init(code: String? = nil, identifier: String? = nil, message: String? = nil) {
            self.code = code
            self.identifier = identifier
            self.message = message
        }

        private enum CodingKeys: String, CodingKey {
            case code
            case identifier
            case message
        }
    }

    public struct GetRecommendationSummariesRequest: AWSEncodableShape {
        /// The ID of the AWS account for which to return recommendation summaries. If your account is the management account of an organization, use this parameter to specify the member account for which you want to return recommendation summaries. Only one account ID can be specified per request.
        public let accountIds: [String]?
        /// The maximum number of recommendation summaries to return with a single request. To retrieve the remaining results, make another request with the returned NextToken value.
        public let maxResults: Int?
        /// The token to advance to the next page of recommendation summaries.
        public let nextToken: String?

        public init(accountIds: [String]? = nil, maxResults: Int? = nil, nextToken: String? = nil) {
            self.accountIds = accountIds
            self.maxResults = maxResults
            self.nextToken = nextToken
        }

        private enum CodingKeys: String, CodingKey {
            case accountIds
            case maxResults
            case nextToken
        }
    }

    public struct GetRecommendationSummariesResponse: AWSDecodableShape {
        /// The token to use to advance to the next page of recommendation summaries. This value is null when there are no more pages of recommendation summaries to return.
        public let nextToken: String?
        /// An array of objects that summarize a recommendation.
        public let recommendationSummaries: [RecommendationSummary]?

        public init(nextToken: String? = nil, recommendationSummaries: [RecommendationSummary]? = nil) {
            self.nextToken = nextToken
            self.recommendationSummaries = recommendationSummaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextToken
            case recommendationSummaries
        }
    }

    public struct InstanceRecommendation: AWSDecodableShape {
        /// The AWS account ID of the instance.
        public let accountId: String?
        /// The instance type of the current instance.
        public let currentInstanceType: String?
        /// The finding classification for the instance. Findings for instances include:     Underprovisioned —An instance is considered under-provisioned when at least one specification of your instance, such as CPU, memory, or network, does not meet the performance requirements of your workload. Under-provisioned instances may lead to poor application performance.     Overprovisioned —An instance is considered over-provisioned when at least one specification of your instance, such as CPU, memory, or network, can be sized down while still meeting the performance requirements of your workload, and no specification is under-provisioned. Over-provisioned instances may lead to unnecessary infrastructure cost.     Optimized —An instance is considered optimized when all specifications of your instance, such as CPU, memory, and network, meet the performance requirements of your workload and is not over provisioned. An optimized instance runs your workloads with optimal performance and infrastructure cost. For optimized resources, AWS Compute Optimizer might recommend a new generation instance type.
        public let finding: Finding?
        /// The Amazon Resource Name (ARN) of the current instance.
        public let instanceArn: String?
        /// The name of the current instance.
        public let instanceName: String?
        /// The time stamp of when the instance recommendation was last refreshed.
        public let lastRefreshTimestamp: Date?
        /// The number of days for which utilization metrics were analyzed for the instance.
        public let lookBackPeriodInDays: Double?
        /// An array of objects that describe the recommendation options for the instance.
        public let recommendationOptions: [InstanceRecommendationOption]?
        /// An array of objects that describe the source resource of the recommendation.
        public let recommendationSources: [RecommendationSource]?
        /// An array of objects that describe the utilization metrics of the instance.
        public let utilizationMetrics: [UtilizationMetric]?

        public init(accountId: String? = nil, currentInstanceType: String? = nil, finding: Finding? = nil, instanceArn: String? = nil, instanceName: String? = nil, lastRefreshTimestamp: Date? = nil, lookBackPeriodInDays: Double? = nil, recommendationOptions: [InstanceRecommendationOption]? = nil, recommendationSources: [RecommendationSource]? = nil, utilizationMetrics: [UtilizationMetric]? = nil) {
            self.accountId = accountId
            self.currentInstanceType = currentInstanceType
            self.finding = finding
            self.instanceArn = instanceArn
            self.instanceName = instanceName
            self.lastRefreshTimestamp = lastRefreshTimestamp
            self.lookBackPeriodInDays = lookBackPeriodInDays
            self.recommendationOptions = recommendationOptions
            self.recommendationSources = recommendationSources
            self.utilizationMetrics = utilizationMetrics
        }

        private enum CodingKeys: String, CodingKey {
            case accountId
            case currentInstanceType
            case finding
            case instanceArn
            case instanceName
            case lastRefreshTimestamp
            case lookBackPeriodInDays
            case recommendationOptions
            case recommendationSources
            case utilizationMetrics
        }
    }

    public struct InstanceRecommendationOption: AWSDecodableShape {
        /// The instance type of the instance recommendation.
        public let instanceType: String?
        /// The performance risk of the instance recommendation option. Performance risk is the likelihood of the recommended instance type not meeting the performance requirement of your workload. The lowest performance risk is categorized as 0, and the highest as 5.
        public let performanceRisk: Double?
        /// An array of objects that describe the projected utilization metrics of the instance recommendation option.  The Cpu and Memory metrics are the only projected utilization metrics returned. Additionally, the Memory metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
        public let projectedUtilizationMetrics: [UtilizationMetric]?
        /// The rank of the instance recommendation option. The top recommendation option is ranked as 1.
        public let rank: Int?

        public init(instanceType: String? = nil, performanceRisk: Double? = nil, projectedUtilizationMetrics: [UtilizationMetric]? = nil, rank: Int? = nil) {
            self.instanceType = instanceType
            self.performanceRisk = performanceRisk
            self.projectedUtilizationMetrics = projectedUtilizationMetrics
            self.rank = rank
        }

        private enum CodingKeys: String, CodingKey {
            case instanceType
            case performanceRisk
            case projectedUtilizationMetrics
            case rank
        }
    }

    public struct JobFilter: AWSEncodableShape {
        /// The name of the filter. Specify ResourceType to return export jobs of a specific resource type (e.g., Ec2Instance). Specify JobStatus to return export jobs with a specific status (e.g, Complete).
        public let name: JobFilterName?
        /// The value of the filter. The valid values for this parameter are as follows, depending on what you specify for the name parameter:   Specify Ec2Instance or AutoScalingGroup if you specified the name parameter as ResourceType. There is no filter for EBS volumes because volume recommendations cannot be exported at this time.   Specify Queued, InProgress, Complete, or Failed if you specified the name parameter as JobStatus.
        public let values: [String]?

        public init(name: JobFilterName? = nil, values: [String]? = nil) {
            self.name = name
            self.values = values
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case values
        }
    }

    public struct LambdaFunctionMemoryProjectedMetric: AWSDecodableShape {
        /// The name of the projected utilization metric.
        public let name: LambdaFunctionMemoryMetricName?
        /// The statistic of the projected utilization metric.
        public let statistic: LambdaFunctionMemoryMetricStatistic?
        /// The values of the projected utilization metrics.
        public let value: Double?

        public init(name: LambdaFunctionMemoryMetricName? = nil, statistic: LambdaFunctionMemoryMetricStatistic? = nil, value: Double? = nil) {
            self.name = name
            self.statistic = statistic
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case statistic
            case value
        }
    }

    public struct LambdaFunctionMemoryRecommendationOption: AWSDecodableShape {
        /// The memory size, in MB, of the function recommendation option.
        public let memorySize: Int?
        /// An array of objects that describe the projected utilization metrics of the function recommendation option.
        public let projectedUtilizationMetrics: [LambdaFunctionMemoryProjectedMetric]?
        /// The rank of the function recommendation option. The top recommendation option is ranked as 1.
        public let rank: Int?

        public init(memorySize: Int? = nil, projectedUtilizationMetrics: [LambdaFunctionMemoryProjectedMetric]? = nil, rank: Int? = nil) {
            self.memorySize = memorySize
            self.projectedUtilizationMetrics = projectedUtilizationMetrics
            self.rank = rank
        }

        private enum CodingKeys: String, CodingKey {
            case memorySize
            case projectedUtilizationMetrics
            case rank
        }
    }

    public struct LambdaFunctionRecommendation: AWSDecodableShape {
        /// The AWS account ID of the function.
        public let accountId: String?
        /// The amount of memory, in MB, that's allocated to the current function.
        public let currentMemorySize: Int?
        /// The finding classification for the function. Findings for functions include:     Optimized  — The function is correctly provisioned to run your workload based on its current configuration and its utilization history. This finding classification does not include finding reason codes.     NotOptimized  — The function is performing at a higher level (over-provisioned) or at a lower level (under-provisioned) than required for your workload because its current configuration is not optimal. Over-provisioned resources might lead to unnecessary infrastructure cost, and under-provisioned resources might lead to poor application performance. This finding classification can include the MemoryUnderprovisioned and MemoryUnderprovisioned finding reason codes.     Unavailable  — Compute Optimizer was unable to generate a recommendation for the function. This could be because the function has not accumulated sufficient metric data, or the function does not qualify for a recommendation. This finding classification can include the InsufficientData and Inconclusive finding reason codes.  Functions with a finding of unavailable are not returned unless you specify the filter parameter with a value of Unavailable in your GetLambdaFunctionRecommendations request.
        public let finding: LambdaFunctionRecommendationFinding?
        /// The reason for the finding classification of the function.  Functions that have a finding classification of Optimized don't have a finding reason code.  Reason codes include:     MemoryOverprovisioned  — The function is over-provisioned when its memory configuration can be sized down while still meeting the performance requirements of your workload. An over-provisioned function might lead to unnecessary infrastructure cost. This finding reason code is part of the NotOptimized finding classification.     MemoryUnderprovisioned  — The function is under-provisioned when its memory configuration doesn't meet the performance requirements of the workload. An under-provisioned function might lead to poor application performance. This finding reason code is part of the NotOptimized finding classification.     InsufficientData  — The function does not have sufficient metric data for Compute Optimizer to generate a recommendation. For more information, see the Supported resources and requirements in the AWS Compute Optimizer User Guide. This finding reason code is part of the Unavailable finding classification.     Inconclusive  — The function does not qualify for a recommendation because Compute Optimizer cannot generate a recommendation with a high degree of confidence. This finding reason code is part of the Unavailable finding classification.
        public let findingReasonCodes: [LambdaFunctionRecommendationFindingReasonCode]?
        /// The Amazon Resource Name (ARN) of the current function.
        public let functionArn: String?
        /// The version number of the current function.
        public let functionVersion: String?
        /// The time stamp of when the function recommendation was last refreshed.
        public let lastRefreshTimestamp: Date?
        /// The number of days for which utilization metrics were analyzed for the function.
        public let lookbackPeriodInDays: Double?
        /// An array of objects that describe the memory configuration recommendation options for the function.
        public let memorySizeRecommendationOptions: [LambdaFunctionMemoryRecommendationOption]?
        /// The number of times your function code was executed during the look-back period.
        public let numberOfInvocations: Int64?
        /// An array of objects that describe the utilization metrics of the function.
        public let utilizationMetrics: [LambdaFunctionUtilizationMetric]?

        public init(accountId: String? = nil, currentMemorySize: Int? = nil, finding: LambdaFunctionRecommendationFinding? = nil, findingReasonCodes: [LambdaFunctionRecommendationFindingReasonCode]? = nil, functionArn: String? = nil, functionVersion: String? = nil, lastRefreshTimestamp: Date? = nil, lookbackPeriodInDays: Double? = nil, memorySizeRecommendationOptions: [LambdaFunctionMemoryRecommendationOption]? = nil, numberOfInvocations: Int64? = nil, utilizationMetrics: [LambdaFunctionUtilizationMetric]? = nil) {
            self.accountId = accountId
            self.currentMemorySize = currentMemorySize
            self.finding = finding
            self.findingReasonCodes = findingReasonCodes
            self.functionArn = functionArn
            self.functionVersion = functionVersion
            self.lastRefreshTimestamp = lastRefreshTimestamp
            self.lookbackPeriodInDays = lookbackPeriodInDays
            self.memorySizeRecommendationOptions = memorySizeRecommendationOptions
            self.numberOfInvocations = numberOfInvocations
            self.utilizationMetrics = utilizationMetrics
        }

        private enum CodingKeys: String, CodingKey {
            case accountId
            case currentMemorySize
            case finding
            case findingReasonCodes
            case functionArn
            case functionVersion
            case lastRefreshTimestamp
            case lookbackPeriodInDays
            case memorySizeRecommendationOptions
            case numberOfInvocations
            case utilizationMetrics
        }
    }

    public struct LambdaFunctionRecommendationFilter: AWSEncodableShape {
        /// The name of the filter. Specify Finding to return recommendations with a specific finding classification (e.g., NotOptimized). Specify FindingReasonCode to return recommendations with a specific finding reason code (e.g., MemoryUnderprovisioned).
        public let name: LambdaFunctionRecommendationFilterName?
        /// The value of the filter. The valid values for this parameter are as follows, depending on what you specify for the name parameter:   Specify Optimized, NotOptimized, or Unavailable if you specified the name parameter as Finding.   Specify MemoryOverprovisioned, MemoryUnderprovisioned, InsufficientData, or Inconclusive if you specified the name parameter as FindingReasonCode.
        public let values: [String]?

        public init(name: LambdaFunctionRecommendationFilterName? = nil, values: [String]? = nil) {
            self.name = name
            self.values = values
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case values
        }
    }

    public struct LambdaFunctionUtilizationMetric: AWSDecodableShape {
        /// The name of the utilization metric. The following utilization metrics are available:    Duration - The amount of time that your function code spends processing an event.    Memory - The amount of memory used per invocation.
        public let name: LambdaFunctionMetricName?
        /// The statistic of the utilization metric.
        public let statistic: LambdaFunctionMetricStatistic?
        /// The value of the utilization metric.
        public let value: Double?

        public init(name: LambdaFunctionMetricName? = nil, statistic: LambdaFunctionMetricStatistic? = nil, value: Double? = nil) {
            self.name = name
            self.statistic = statistic
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case statistic
            case value
        }
    }

    public struct ProjectedMetric: AWSDecodableShape {
        /// The name of the projected utilization metric. The following projected utilization metrics are returned:    Cpu - The projected percentage of allocated EC2 compute units that would be in use on the recommendation option had you used that resource during the analyzed period. This metric identifies the processing power required to run an application on the recommendation option. Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core. Units: Percent    Memory - The percentage of memory that would be in use on the recommendation option had you used that resource during the analyzed period. This metric identifies the amount of memory required to run an application on the recommendation option. Units: Percent  The Memory metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.
        public let name: MetricName?
        /// The time stamps of the projected utilization metric.
        public let timestamps: [Date]?
        /// The values of the projected utilization metrics.
        public let values: [Double]?

        public init(name: MetricName? = nil, timestamps: [Date]? = nil, values: [Double]? = nil) {
            self.name = name
            self.timestamps = timestamps
            self.values = values
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case timestamps
            case values
        }
    }

    public struct ReasonCodeSummary: AWSDecodableShape {
        /// The name of the finding reason code.
        public let name: FindingReasonCode?
        /// The value of the finding reason code summary.
        public let value: Double?

        public init(name: FindingReasonCode? = nil, value: Double? = nil) {
            self.name = name
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case value
        }
    }

    public struct RecommendationExportJob: AWSDecodableShape {
        /// The timestamp of when the export job was created.
        public let creationTimestamp: Date?
        /// An object that describes the destination of the export file.
        public let destination: ExportDestination?
        /// The reason for an export job failure.
        public let failureReason: String?
        /// The identification number of the export job.
        public let jobId: String?
        /// The timestamp of when the export job was last updated.
        public let lastUpdatedTimestamp: Date?
        /// The resource type of the exported recommendations.
        public let resourceType: ResourceType?
        /// The status of the export job.
        public let status: JobStatus?

        public init(creationTimestamp: Date? = nil, destination: ExportDestination? = nil, failureReason: String? = nil, jobId: String? = nil, lastUpdatedTimestamp: Date? = nil, resourceType: ResourceType? = nil, status: JobStatus? = nil) {
            self.creationTimestamp = creationTimestamp
            self.destination = destination
            self.failureReason = failureReason
            self.jobId = jobId
            self.lastUpdatedTimestamp = lastUpdatedTimestamp
            self.resourceType = resourceType
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case creationTimestamp
            case destination
            case failureReason
            case jobId
            case lastUpdatedTimestamp
            case resourceType
            case status
        }
    }

    public struct RecommendationSource: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the recommendation source.
        public let recommendationSourceArn: String?
        /// The resource type of the recommendation source.
        public let recommendationSourceType: RecommendationSourceType?

        public init(recommendationSourceArn: String? = nil, recommendationSourceType: RecommendationSourceType? = nil) {
            self.recommendationSourceArn = recommendationSourceArn
            self.recommendationSourceType = recommendationSourceType
        }

        private enum CodingKeys: String, CodingKey {
            case recommendationSourceArn
            case recommendationSourceType
        }
    }

    public struct RecommendationSummary: AWSDecodableShape {
        /// The AWS account ID of the recommendation summary.
        public let accountId: String?
        /// The resource type of the recommendation.
        public let recommendationResourceType: RecommendationSourceType?
        /// An array of objects that describe a recommendation summary.
        public let summaries: [Summary]?

        public init(accountId: String? = nil, recommendationResourceType: RecommendationSourceType? = nil, summaries: [Summary]? = nil) {
            self.accountId = accountId
            self.recommendationResourceType = recommendationResourceType
            self.summaries = summaries
        }

        private enum CodingKeys: String, CodingKey {
            case accountId
            case recommendationResourceType
            case summaries
        }
    }

    public struct RecommendedOptionProjectedMetric: AWSDecodableShape {
        /// An array of objects that describe a projected utilization metric.
        public let projectedMetrics: [ProjectedMetric]?
        /// The rank of the recommendation option projected metric. The top recommendation option is ranked as 1. The projected metric rank correlates to the recommendation option rank. For example, the projected metric ranked as 1 is related to the recommendation option that is also ranked as 1 in the same response.
        public let rank: Int?
        /// The recommended instance type.
        public let recommendedInstanceType: String?

        public init(projectedMetrics: [ProjectedMetric]? = nil, rank: Int? = nil, recommendedInstanceType: String? = nil) {
            self.projectedMetrics = projectedMetrics
            self.rank = rank
            self.recommendedInstanceType = recommendedInstanceType
        }

        private enum CodingKeys: String, CodingKey {
            case projectedMetrics
            case rank
            case recommendedInstanceType
        }
    }

    public struct S3Destination: AWSDecodableShape {
        /// The name of the Amazon S3 bucket used as the destination of an export file.
        public let bucket: String?
        /// The Amazon S3 bucket key of an export file. The key uniquely identifies the object, or export file, in the S3 bucket.
        public let key: String?
        /// The Amazon S3 bucket key of a metadata file. The key uniquely identifies the object, or metadata file, in the S3 bucket.
        public let metadataKey: String?

        public init(bucket: String? = nil, key: String? = nil, metadataKey: String? = nil) {
            self.bucket = bucket
            self.key = key
            self.metadataKey = metadataKey
        }

        private enum CodingKeys: String, CodingKey {
            case bucket
            case key
            case metadataKey
        }
    }

    public struct S3DestinationConfig: AWSEncodableShape {
        /// The name of the Amazon S3 bucket to use as the destination for an export job.
        public let bucket: String?
        /// The Amazon S3 bucket prefix for an export job.
        public let keyPrefix: String?

        public init(bucket: String? = nil, keyPrefix: String? = nil) {
            self.bucket = bucket
            self.keyPrefix = keyPrefix
        }

        private enum CodingKeys: String, CodingKey {
            case bucket
            case keyPrefix
        }
    }

    public struct Summary: AWSDecodableShape {
        /// The finding classification of the recommendation.
        public let name: Finding?
        /// An array of objects that summarize a finding reason code.
        public let reasonCodeSummaries: [ReasonCodeSummary]?
        /// The value of the recommendation summary.
        public let value: Double?

        public init(name: Finding? = nil, reasonCodeSummaries: [ReasonCodeSummary]? = nil, value: Double? = nil) {
            self.name = name
            self.reasonCodeSummaries = reasonCodeSummaries
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case reasonCodeSummaries
            case value
        }
    }

    public struct UpdateEnrollmentStatusRequest: AWSEncodableShape {
        /// Indicates whether to enroll member accounts of the organization if the account is the management account of an organization.
        public let includeMemberAccounts: Bool?
        /// The new enrollment status of the account. The following status options are available:    Active - Opts in your account to the Compute Optimizer service. Compute Optimizer begins analyzing the configuration and utilization metrics of your AWS resources after you opt in. For more information, see Metrics analyzed by AWS Compute Optimizer in the Compute Optimizer User Guide.    Inactive - Opts out your account from the Compute Optimizer service. Your account's recommendations and related metrics data will be deleted from Compute Optimizer after you opt out.    The Pending and Failed options cannot be used to update the enrollment status of an account. They are returned in the response of a request to update the enrollment status of an account.
        public let status: Status

        public init(includeMemberAccounts: Bool? = nil, status: Status) {
            self.includeMemberAccounts = includeMemberAccounts
            self.status = status
        }

        private enum CodingKeys: String, CodingKey {
            case includeMemberAccounts
            case status
        }
    }

    public struct UpdateEnrollmentStatusResponse: AWSDecodableShape {
        /// The enrollment status of the account.
        public let status: Status?
        /// The reason for the enrollment status of the account. For example, an account might show a status of Pending because member accounts of an organization require more time to be enrolled in the service.
        public let statusReason: String?

        public init(status: Status? = nil, statusReason: String? = nil) {
            self.status = status
            self.statusReason = statusReason
        }

        private enum CodingKeys: String, CodingKey {
            case status
            case statusReason
        }
    }

    public struct UtilizationMetric: AWSDecodableShape {
        /// The name of the utilization metric. The following utilization metrics are available:    Cpu - The percentage of allocated EC2 compute units that are currently in use on the instance. This metric identifies the processing power required to run an application on the instance. Depending on the instance type, tools in your operating system can show a lower percentage than CloudWatch when the instance is not allocated a full processor core. Units: Percent    Memory - The percentage of memory that is currently in use on the instance. This metric identifies the amount of memory required to run an application on the instance. Units: Percent  The Memory metric is returned only for resources that have the unified CloudWatch agent installed on them. For more information, see Enabling Memory Utilization with the CloudWatch Agent.     EBS_READ_OPS_PER_SECOND - The completed read operations from all EBS volumes attached to the instance in a specified period of time. Unit: Count    EBS_WRITE_OPS_PER_SECOND - The completed write operations to all EBS volumes attached to the instance in a specified period of time. Unit: Count    EBS_READ_BYTES_PER_SECOND - The bytes read from all EBS volumes attached to the instance in a specified period of time. Unit: Bytes    EBS_WRITE_BYTES_PER_SECOND - The bytes written to all EBS volumes attached to the instance in a specified period of time. Unit: Bytes
        public let name: MetricName?
        /// The statistic of the utilization metric. The following statistics are available:    Average - This is the value of Sum / SampleCount during the specified period, or the average value observed during the specified period.    Maximum - The highest value observed during the specified period. Use this value to determine high volumes of activity for your application.
        public let statistic: MetricStatistic?
        /// The value of the utilization metric.
        public let value: Double?

        public init(name: MetricName? = nil, statistic: MetricStatistic? = nil, value: Double? = nil) {
            self.name = name
            self.statistic = statistic
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name
            case statistic
            case value
        }
    }

    public struct VolumeConfiguration: AWSDecodableShape {
        /// The baseline IOPS of the volume.
        public let volumeBaselineIOPS: Int?
        /// The baseline throughput of the volume.
        public let volumeBaselineThroughput: Int?
        /// The burst IOPS of the volume.
        public let volumeBurstIOPS: Int?
        /// The burst throughput of the volume.
        public let volumeBurstThroughput: Int?
        /// The size of the volume, in GiB.
        public let volumeSize: Int?
        /// The volume type. This can be gp2 for General Purpose SSD, io1 or io2 for Provisioned IOPS SSD, st1 for Throughput Optimized HDD, sc1 for Cold HDD, or standard for Magnetic volumes.
        public let volumeType: String?

        public init(volumeBaselineIOPS: Int? = nil, volumeBaselineThroughput: Int? = nil, volumeBurstIOPS: Int? = nil, volumeBurstThroughput: Int? = nil, volumeSize: Int? = nil, volumeType: String? = nil) {
            self.volumeBaselineIOPS = volumeBaselineIOPS
            self.volumeBaselineThroughput = volumeBaselineThroughput
            self.volumeBurstIOPS = volumeBurstIOPS
            self.volumeBurstThroughput = volumeBurstThroughput
            self.volumeSize = volumeSize
            self.volumeType = volumeType
        }

        private enum CodingKeys: String, CodingKey {
            case volumeBaselineIOPS
            case volumeBaselineThroughput
            case volumeBurstIOPS
            case volumeBurstThroughput
            case volumeSize
            case volumeType
        }
    }

    public struct VolumeRecommendation: AWSDecodableShape {
        /// The AWS account ID of the volume.
        public let accountId: String?
        /// An array of objects that describe the current configuration of the volume.
        public let currentConfiguration: VolumeConfiguration?
        /// The finding classification for the volume. Findings for volumes include:     NotOptimized —A volume is considered not optimized when AWS Compute Optimizer identifies a recommendation that can provide better performance for your workload.     Optimized —An volume is considered optimized when Compute Optimizer determines that the volume is correctly provisioned to run your workload based on the chosen volume type. For optimized resources, Compute Optimizer might recommend a new generation volume type.
        public let finding: EBSFinding?
        /// The time stamp of when the volume recommendation was last refreshed.
        public let lastRefreshTimestamp: Date?
        /// The number of days for which utilization metrics were analyzed for the volume.
        public let lookBackPeriodInDays: Double?
        /// An array of objects that describe the utilization metrics of the volume.
        public let utilizationMetrics: [EBSUtilizationMetric]?
        /// The Amazon Resource Name (ARN) of the current volume.
        public let volumeArn: String?
        /// An array of objects that describe the recommendation options for the volume.
        public let volumeRecommendationOptions: [VolumeRecommendationOption]?

        public init(accountId: String? = nil, currentConfiguration: VolumeConfiguration? = nil, finding: EBSFinding? = nil, lastRefreshTimestamp: Date? = nil, lookBackPeriodInDays: Double? = nil, utilizationMetrics: [EBSUtilizationMetric]? = nil, volumeArn: String? = nil, volumeRecommendationOptions: [VolumeRecommendationOption]? = nil) {
            self.accountId = accountId
            self.currentConfiguration = currentConfiguration
            self.finding = finding
            self.lastRefreshTimestamp = lastRefreshTimestamp
            self.lookBackPeriodInDays = lookBackPeriodInDays
            self.utilizationMetrics = utilizationMetrics
            self.volumeArn = volumeArn
            self.volumeRecommendationOptions = volumeRecommendationOptions
        }

        private enum CodingKeys: String, CodingKey {
            case accountId
            case currentConfiguration
            case finding
            case lastRefreshTimestamp
            case lookBackPeriodInDays
            case utilizationMetrics
            case volumeArn
            case volumeRecommendationOptions
        }
    }

    public struct VolumeRecommendationOption: AWSDecodableShape {
        /// An array of objects that describe a volume configuration.
        public let configuration: VolumeConfiguration?
        /// The performance risk of the volume recommendation option. Performance risk is the likelihood of the recommended volume type not meeting the performance requirement of your workload. The lowest performance risk is categorized as 0, and the highest as 5.
        public let performanceRisk: Double?
        /// The rank of the volume recommendation option. The top recommendation option is ranked as 1.
        public let rank: Int?

        public init(configuration: VolumeConfiguration? = nil, performanceRisk: Double? = nil, rank: Int? = nil) {
            self.configuration = configuration
            self.performanceRisk = performanceRisk
            self.rank = rank
        }

        private enum CodingKeys: String, CodingKey {
            case configuration
            case performanceRisk
            case rank
        }
    }
}
